public class demo024 {
    public static void main(String[] args) {
        int[] Fibonacci = new int[40];
        Fibonacci[0] = 1;
        Fibonacci[1] = 1;
        for (int i = 2; i < 40; i++) {
            Fibonacci[i] = Fibonacci[i - 1] + Fibonacci[i - 2];
        }
        for (int j = 0; j < 40; j++) {
            System.out.print(Fibonacci[j] + "\t");
            if (j % 10 == 0) {
                System.out.println();
            }
        }
    }
}
